<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<!-- 网页使用的语言 -->
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>诚信考试</title>
    <link href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/static/js/jquery-3.6.0.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container" style="width: 1200px">
    <h3 style="text-align: center">班级管理</h3>
    <div style="float: right;margin: 5px">
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/jsp/teacher/main.jsp">返回</a>
    </div>
    <table border="1" class="table table-bordered table-hover">
        <tr class="success">
            <th>试卷编号</th>
            <th>试卷名称</th>
            <th>考试时间</th>
            <th>考试时长</th>
            <th>班级名称</th>
            <th>操作</th>
        </tr>

        <c:forEach items="${testList}" var="test" varStatus="s">
            <tr>
                <td>${test.id}</td>
                <td>${test.context}</td>
                <td>${test.beginDate}</td>
                <td>${test.testTime}</td>
                <td>${classroom.className}</td>
                <td><a class="btn btn-default btn-sm" href="${pageContext.request.contextPath}/Teacher/classGrade/${test.id}/${classroom.id}">成绩查看</a>&nbsp;
                    </td>
            </tr>
        </c:forEach>

    </table>
</div>
</body>
</html>